﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using BridgeShips.AI;
namespace BridgeShips
{
	public class BuildingHolder : MonoBehaviour 
	{
		private List<Building.BuildingPiece> m_Pieces = new List<Building.BuildingPiece>();


		public bool HasCollider(Collider col)
		{
			return false;
		}

		public void AddPiece( Building.BuildingPiece piece)
		{
			if(!m_Pieces.Contains(piece))
			{
				m_Pieces.Add(piece); 

			}
		}

		private void OnPieceDeath( Building.BuildingPiece piece)
		{
			m_Pieces.Remove(piece);
		}
	}
}
